package person.locke.regexandgame.game.zombie;

import person.locke.regexandgame.game.ability.Defendable;

/**
 * Created by Locker on 2018/7/4.
 */
public class DefenseZombie extends Zombie implements Defendable{

    private int defense;

    public DefenseZombie() {
    }

    public DefenseZombie(String name, int hp, int defense) {
        super(name, hp);
        this.defense = defense;
    }


    public void defence( ) {

        System.out.println("I'm a "+this.getName()+".\n"+"I have max defense "+defense);

    }
}
